package com.qumitech.visualnovel.datasource.app;

import com.qumitech.visualnovel.model.dao.app.GuildMemberDO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface GuildMemberDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GuildMemberDO record);

    int insertSelective(GuildMemberDO record);

    GuildMemberDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GuildMemberDO record);

    int updateByPrimaryKey(GuildMemberDO record);

    int getCount(@Param("memberUid") Integer memberUid,
                             @Param("guildId") Integer guildId,
                             @Param("status") Integer status,
                             @Param("startTime") String startTime,
                             @Param("endTime") String endTime);

    List<GuildMemberDO> getList(@Param("memberUid") Integer memberUid,
                                               @Param("guildId") Integer guildId,
                                               @Param("status") Integer status,
                                               @Param("startTime") String startTime,
                                               @Param("endTime") String endTime,
                                               @Param("offset") int offset,
                                               @Param("limit") int limit);
}